;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {

    plan = {
        "planA": {
            "name": "华贵随e飞航意保障年卡",
            "company": "华贵保险",
            "year": "0-65",
            "days": "1y",
            "people_count": "1",
            "airplane_death": "2000000",
            "price": "20.00"
        },
        "planB": {
            "name": "华贵随e飞航意保障年卡",
            "company": "华贵保险",
            "year": "0-65",
            "days": "1y",
            "people_count": "1",
            "airplane_death": "5000000",
            "price": "50.00"
        }
    }
    for (k in plan){
        data = plan[k];
        mysql.insertData( data );
    }
    mysql.close();
}
